package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FacilityMapper;
import com.ruoyi.system.domain.Facility;
import com.ruoyi.system.service.IFacilityService;

/**
 * 设备管理Service业务层处理
 * 
 * @author GGJ
 * @date 2024-05-20
 */
@Service
public class FacilityServiceImpl implements IFacilityService 
{
    @Autowired
    private FacilityMapper facilityMapper;

    /**
     * 查询设备管理
     * 
     * @param id 设备管理主键
     * @return 设备管理
     */
    @Override
    public Facility selectFacilityById(String id)
    {
        return facilityMapper.selectFacilityById(id);
    }

    /**
     * 查询设备管理列表
     * 
     * @param facility 设备管理
     * @return 设备管理
     */
    @Override
    public List<Facility> selectFacilityList(Facility facility)
    {
        return facilityMapper.selectFacilityList(facility);
    }

    /**
     * 新增设备管理
     * 
     * @param facility 设备管理
     * @return 结果
     */
    @Override
    public int insertFacility(Facility facility)
    {
        return facilityMapper.insertFacility(facility);
    }

    /**
     * 修改设备管理
     * 
     * @param facility 设备管理
     * @return 结果
     */
    @Override
    public int updateFacility(Facility facility)
    {
        return facilityMapper.updateFacility(facility);
    }

    /**
     * 批量删除设备管理
     * 
     * @param ids 需要删除的设备管理主键
     * @return 结果
     */
    @Override
    public int deleteFacilityByIds(String[] ids)
    {
        return facilityMapper.deleteFacilityByIds(ids);
    }

    /**
     * 删除设备管理信息
     * 
     * @param id 设备管理主键
     * @return 结果
     */
    @Override
    public int deleteFacilityById(String id)
    {
        return facilityMapper.deleteFacilityById(id);
    }
}
